home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / hc / pers_fin.sit / Personal Financer / background_2781.txt < prev    next >
Encoding:
Text File  |  1988-11-14  |  8.6 KB  |  435 lines

  1. -- background: 2781 from stack: in
  2. -- bmap block id: 4023
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on newCard
  8.   get background field id 23 of previous card
  9.   put it into x
  10.   convert x to dateItems
  11.   add 7 to item three of x
  12.   convert x to long date
  13.   put x into background field id 23
  14.   get background field id 35 of previous card
  15.   put it into z
  16.   add 1 to it
  17.   put it into background field id 35
  18. end newCard
  19.  
  20. on tabKey
  21.   getfirstmove
  22. end tabKey
  23.  
  24. on getfirstmove
  25.   put the clickloc into x
  26.   add 14 to item 2 of x
  27.   if item 2 of x > 240 then getcalculate
  28.   else getnextline1
  29. end getfirstmove
  30.  
  31. on getmove1
  32.   put the clickloc into x
  33.   add 14 to item 2 of x
  34.   if item 2 of x > 240 then subtract 140 from item 2 of x
  35.   add 45 to item 1 of x
  36.   if item 1 of x > 419 then click at 124,111
  37.   else click at x
  38.   put the clickloc into y
  39.   put the clickloc into z
  40.   subtract 60 from item 2 of z
  41.   drag from y to z
  42.  
  43. end getmove1
  44.  
  45. on getnextline1
  46.   put the clickloc into x
  47.   add 14 to item 2 of x
  48.   click at x
  49.   put the clickloc into y
  50.   put the clickloc into z
  51.   subtract 60 from item 2 of z
  52.   drag from y to z
  53. end getnextline1
  54.  
  55. on getcalculate
  56.   put 0 into total
  57.   repeat with row = 1 to 10
  58.     get line row of field 1
  59.     add it to total
  60.   end repeat
  61.   put total into line 11 of field 1
  62.  
  63.  
  64.   put 0 into total
  65.   repeat with row = 1 to 10
  66.     get line row of field 2
  67.     add it to total
  68.   end repeat
  69.   put total into line 11 of field 2
  70.  
  71.   put 0 into total
  72.   repeat with row = 1 to 10
  73.     get line row of field 3
  74.     add it to total
  75.   end repeat
  76.   put total into line 11 of field 3
  77.  
  78.   put 0 into total
  79.   repeat with row = 1 to 10
  80.     get line row of field 4
  81.     add it to total
  82.   end repeat
  83.   put total into line 11 of field 4
  84.  
  85.   put 0 into total
  86.   repeat with row = 1 to 10
  87.     get line row of field 5
  88.     add it to total
  89.   end repeat
  90.   put total into line 11 of field 5
  91.  
  92.   put 0 into total
  93.   repeat with row = 1 to 10
  94.     get line row of field 6
  95.     add it to total
  96.   end repeat
  97.   put total into line 11 of field 6
  98.  
  99.   put 0 into total
  100.   repeat with row = 1 to 10
  101.     get line row of field 7
  102.     add it to total
  103.   end repeat
  104.   put total into line 11 of field 7
  105.   getmove1
  106. end getcalculate
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. -- part 2 (field)
  114. -- low flags: 00
  115. -- high flags: 4002
  116. -- rect: left=76 top=101 right=255 bottom=126
  117. -- title width / last selected line: 0
  118. -- icon id / first selected line: 0 / 0
  119. -- text alignment: 65535
  120. -- font id: 3
  121. -- text size: 10
  122. -- style flags: 0
  123. -- line height: 14
  124. -- part name: 
  125.  
  126.  
  127. -- part 10 (field)
  128. -- low flags: 00
  129. -- high flags: 4002
  130. -- rect: left=125 top=101 right=255 bottom=175
  131. -- title width / last selected line: 0
  132. -- icon id / first selected line: 0 / 0
  133. -- text alignment: 65535
  134. -- font id: 3
  135. -- text size: 10
  136. -- style flags: 0
  137. -- line height: 14
  138. -- part name: 
  139.  
  140.  
  141. -- part 11 (field)
  142. -- low flags: 00
  143. -- high flags: 4002
  144. -- rect: left=174 top=101 right=255 bottom=224
  145. -- title width / last selected line: 0
  146. -- icon id / first selected line: 0 / 0
  147. -- text alignment: 65535
  148. -- font id: 3
  149. -- text size: 10
  150. -- style flags: 0
  151. -- line height: 14
  152. -- part name: 
  153.  
  154.  
  155. -- part 12 (field)
  156. -- low flags: 00
  157. -- high flags: 4002
  158. -- rect: left=223 top=101 right=255 bottom=273
  159. -- title width / last selected line: 0
  160. -- icon id / first selected line: 0 / 0
  161. -- text alignment: 65535
  162. -- font id: 3
  163. -- text size: 10
  164. -- style flags: 0
  165. -- line height: 14
  166. -- part name: 
  167.  
  168.  
  169. -- part 13 (field)
  170. -- low flags: 00
  171. -- high flags: 4002
  172. -- rect: left=272 top=101 right=255 bottom=322
  173. -- title width / last selected line: 0
  174. -- icon id / first selected line: 0 / 0
  175. -- text alignment: 65535
  176. -- font id: 3
  177. -- text size: 10
  178. -- style flags: 0
  179. -- line height: 14
  180. -- part name: 
  181.  
  182.  
  183. -- part 14 (field)
  184. -- low flags: 00
  185. -- high flags: 4002
  186. -- rect: left=321 top=101 right=255 bottom=371
  187. -- title width / last selected line: 0
  188. -- icon id / first selected line: 0 / 0
  189. -- text alignment: 65535
  190. -- font id: 3
  191. -- text size: 10
  192. -- style flags: 0
  193. -- line height: 14
  194. -- part name: 
  195.  
  196.  
  197. -- part 15 (field)
  198. -- low flags: 00
  199. -- high flags: 4002
  200. -- rect: left=370 top=101 right=255 bottom=420
  201. -- title width / last selected line: 0
  202. -- icon id / first selected line: 0 / 0
  203. -- text alignment: 65535
  204. -- font id: 3
  205. -- text size: 10
  206. -- style flags: 0
  207. -- line height: 14
  208. -- part name: 
  209.  
  210.  
  211. -- part 21 (button)
  212. -- low flags: 00
  213. -- high flags: 8004
  214. -- rect: left=425 top=105 right=126 bottom=511
  215. -- title width / last selected line: 0
  216. -- icon id / first selected line: 0 / 0
  217. -- text alignment: 1
  218. -- font id: 0
  219. -- text size: 12
  220. -- style flags: 0
  221. -- line height: 16
  222. -- part name: New Card
  223. ----- HyperTalk script -----
  224. on mouseUp
  225.   doMenu New Card
  226. end mouseUp
  227.  
  228.  
  229.  
  230. -- part 23 (field)
  231. -- low flags: 00
  232. -- high flags: 0004
  233. -- rect: left=269 top=36 right=57 bottom=510
  234. -- title width / last selected line: 0
  235. -- icon id / first selected line: 0 / 0
  236. -- text alignment: 0
  237. -- font id: 3
  238. -- text size: 12
  239. -- style flags: 256
  240. -- line height: 16
  241. -- part name: 
  242.  
  243.  
  244. -- part 24 (button)
  245. -- low flags: 00
  246. -- high flags: 8004
  247. -- rect: left=434 top=131 right=150 bottom=504
  248. -- title width / last selected line: 0
  249. -- icon id / first selected line: 0 / 0
  250. -- text alignment: 1
  251. -- font id: 0
  252. -- text size: 12
  253. -- style flags: 0
  254. -- line height: 16
  255. -- part name: Help
  256. ----- HyperTalk script -----
  257. on mouseUp
  258.   push card
  259.   go to card 1
  260.   show card field id 3
  261. end mouseUp
  262.  
  263.  
  264.  
  265. -- part 29 (button)
  266. -- low flags: 00
  267. -- high flags: 8004
  268. -- rect: left=434 top=155 right=173 bottom=503
  269. -- title width / last selected line: 0
  270. -- icon id / first selected line: 0 / 0
  271. -- text alignment: 1
  272. -- font id: 0
  273. -- text size: 12
  274. -- style flags: 0
  275. -- line height: 16
  276. -- part name: About
  277. ----- HyperTalk script -----
  278. on mouseUp
  279.   push card
  280.   go to card 1
  281.   show card field id 4
  282. end mouseUp
  283.  
  284.  
  285.  
  286. -- part 30 (button)
  287. -- low flags: 00
  288. -- high flags: 0004
  289. -- rect: left=471 top=206 right=227 bottom=503
  290. -- title width / last selected line: 0
  291. -- icon id / first selected line: 8419 / 8419
  292. -- text alignment: 1
  293. -- font id: 0
  294. -- text size: 12
  295. -- style flags: 0
  296. -- line height: 16
  297. -- part name: New Button
  298. ----- HyperTalk script -----
  299. on mouseUp
  300.   visual wipe right
  301.   go to next card
  302. end mouseUp
  303.  
  304.  
  305.  
  306. -- part 31 (button)
  307. -- low flags: 00
  308. -- high flags: 0004
  309. -- rect: left=435 top=206 right=227 bottom=470
  310. -- title width / last selected line: 0
  311. -- icon id / first selected line: 17779 / 17779
  312. -- text alignment: 1
  313. -- font id: 0
  314. -- text size: 12
  315. -- style flags: 0
  316. -- line height: 16
  317. -- part name: 
  318. ----- HyperTalk script -----
  319. on mouseUp
  320.   visual wipe left
  321.   go to previous card
  322. end mouseUp
  323.  
  324.  
  325.  
  326. -- part 32 (button)
  327. -- low flags: 00
  328. -- high flags: 0004
  329. -- rect: left=446 top=231 right=258 bottom=492
  330. -- title width / last selected line: 0
  331. -- icon id / first selected line: 7417 / 7417
  332. -- text alignment: 1
  333. -- font id: 0
  334. -- text size: 12
  335. -- style flags: 0
  336. -- line height: 16
  337. -- part name: New Button
  338. ----- HyperTalk script -----
  339. on mouseUp
  340.   go to first card
  341. end mouseUp
  342.  
  343.  
  344.  
  345. -- part 33 (button)
  346. -- low flags: 00
  347. -- high flags: 8004
  348. -- rect: left=431 top=179 right=200 bottom=507
  349. -- title width / last selected line: 0
  350. -- icon id / first selected line: 0 / 0
  351. -- text alignment: 1
  352. -- font id: 0
  353. -- text size: 12
  354. -- style flags: 0
  355. -- line height: 16
  356. -- part name: Calculate
  357. ----- HyperTalk script -----
  358. on mouseUp
  359.   getcalculate
  360. end mouseUp
  361.  
  362. on getcalculate
  363.   put 0 into total
  364.   repeat with row = 1 to 10
  365.     get line row of field 1
  366.     add it to total
  367.   end repeat
  368.   put total into line 11 of field 1
  369.   add total to background field 11
  370.  
  371.   put 0 into total
  372.   repeat with row = 1 to 10
  373.     get line row of field 2
  374.     add it to total
  375.   end repeat
  376.   put total into line 11 of field 2
  377.   add total to background field 11
  378.  
  379.   put 0 into total
  380.   repeat with row = 1 to 10
  381.     get line row of field 3
  382.     add it to total
  383.   end repeat
  384.   put total into line 11 of field 3
  385.   add total to background field 11
  386.  
  387.   put 0 into total
  388.   repeat with row = 1 to 10
  389.     get line row of field 4
  390.     add it to total
  391.   end repeat
  392.   put total into line 11 of field 4
  393.   add total to background field 11
  394.  
  395.   put 0 into total
  396.   repeat with row = 1 to 10
  397.     get line row of field 5
  398.     add it to total
  399.   end repeat
  400.   put total into line 11 of field 5
  401.   add total to background field 11
  402.  
  403.   put 0 into total
  404.   repeat with row = 1 to 10
  405.     get line row of field 6
  406.     add it to total
  407.   end repeat
  408.   put total into line 11 of field 6
  409.   add total to background field 11
  410.  
  411.   put 0 into total
  412.   repeat with row = 1 to 10
  413.     get line row of field 7
  414.     add it to total
  415.   end repeat
  416.   put total into line 11 of field 7
  417.   add total to background field 11
  418. end getcalculate
  419.  
  420.  
  421.  
  422.  
  423. -- part 35 (field)
  424. -- low flags: 00
  425. -- high flags: 0004
  426. -- rect: left=17 top=77 right=94 bottom=51
  427. -- title width / last selected line: 0
  428. -- icon id / first selected line: 0 / 0
  429. -- text alignment: 0
  430. -- font id: 3
  431. -- text size: 12
  432. -- style flags: 0
  433. -- line height: 16
  434. -- part name: number
  435.